<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="templates/faceTemplate.xhtml">

            <ui:define name="top">
                <h1>Giriş</h1>
            </ui:define>

            <ui:define name="content">
                   <p:growl id="growl" showDetail="true" />
              <form name="loginform" id="loginform" action="/evinreisi/j_spring_security_check" method="post">
                    <h:panelGrid id="formPanel" columns="2" cellpadding="2" cellspacing="2">
                        <h:outputLabel value="Kullanıcı Adı" styleClass="label" />
                        <p:inputText id="j_username" name="j_username" required="true" requiredMessage="Kullanıcı Adı alanı zorunludur" 
                                     maxlength="20" size="30"  />
                        
                        <h:outputLabel value="Şifre" styleClass="label" />
                        <p:inputText  id="j_password" name="j_password" required="true" requiredMessage="Şifre alanı zorunludur"
                                     maxlength="20" size="30" feedback="false"/>
                        
                        <p:ajaxStatus>
                            <f:facet name="start">
                                <h:graphicImage value="/images/ajax.gif" />
                            </f:facet>
                            <f:facet name="complete">
                                <h:outputText value="" />
                            </f:facet>
                        </p:ajaxStatus>
                        <h:panelGroup>
                            <input type="submit" value="Login"/>
                        </h:panelGroup>
                        
                    </h:panelGrid>
                </form>

            </ui:define>
            <ui:define name="bottom">
            </ui:define>
        </ui:composition>

    </body>
</html>
